﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QDate>
#include <QLineEdit>
#include <QPushButton>
#include <QLabel>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    void init();

private slots:
    void on_action_exit_triggered(bool checked);

    void on_action_insert_triggered();

    void on_tableWidget_itemSelectionChanged();

    void on_action_delete_triggered();
    void onButtonFind();

    void on_tableWidget_cellClicked(int row, int column);

private:
    Ui::MainWindow *ui;
    int MaxNo;
    int insertRow;
    QLineEdit*lineEdit;
    QPushButton*pushBtn;
    QLabel*label;
    void creatRows(int rowNumber,QString name,int number,QString gender,QDate birthday,QString job,bool married);
};
#endif // MAINWINDOW_H
